﻿<UserControl
    x:Class="Studio77.AbbLinkLink.Views.WinBlockView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Studio77.AbbLinkLink.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="768"
    d:DesignWidth="1366">
	<UserControl.Resources>
		<Style x:Key="MainButtonStyle" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ColorAnimation Duration="0" To="#FFC56300" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="border" d:IsOptimized="True"/>
											<ColorAnimation Duration="0" To="#FFFFE2C0" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="border" d:IsOptimized="True"/>
											<ColorAnimation Duration="0" To="#FFE83500" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="border" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Disabled"/>
									<VisualState x:Name="PointerOver"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused"/>
									<VisualState x:Name="PointerFocused"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Border x:Name="border" BorderBrush="#FFC75A00" BorderThickness="1" CornerRadius="7">
								<Border.Background>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFFFF9C0"/>
										<GradientStop Color="#FFE8D300" Offset="1"/>
										<GradientStop Color="#FFC5B300" Offset="0.323"/>
									</LinearGradientBrush>
								</Border.Background>
							</Border>
							<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</UserControl.Resources>
    
    <Grid>
		<Border BorderBrush="#FF646464" BorderThickness="1" HorizontalAlignment="Left" Height="768" VerticalAlignment="Top" Width="1366" Background="#FF2C2C2C" Opacity="0.77" d:IsLocked="True"/>
		<Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Center" Height="330" VerticalAlignment="Center" Width="375" CornerRadius="15">
			<Border.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFE8E8E8"/>
					<GradientStop Color="#FF939393" Offset="1"/>
				</LinearGradientBrush>
			</Border.Background>
			<Grid>
				<Border BorderBrush="#FF2B2B2B" BorderThickness="0,0,0,1" Height="60" VerticalAlignment="Top" CornerRadius="15,15,0,0">
					<Border.Background>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FFFFB9B9"/>
							<GradientStop Color="#FFFF4A4A" Offset="1"/>
						</LinearGradientBrush>
					</Border.Background>
					<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="恭喜过关" VerticalAlignment="Center" FontSize="32" Foreground="Black" Margin="123,12,122,9"/>
				</Border>
				<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,50,0,0">
					<Button x:Name="btnContinue" Content="下一个关卡" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Width="190" Style="{StaticResource MainButtonStyle}" FontSize="24" Margin="0,10" Foreground="Black" Click="btnContinue_Click"/>
					<Button x:Name="btnRestart" Content="重新开始" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Width="190" Style="{StaticResource MainButtonStyle}" FontSize="24" Margin="0,10" Foreground="Black" Click="btnRestart_Click"/>
					<Button x:Name="btnMain" Content="主菜单" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Width="190" Style="{StaticResource MainButtonStyle}" FontSize="24" Margin="0,10" Foreground="Black" Click="btnMain_Click"/>
				</StackPanel>
			</Grid>
		</Border>

	</Grid>
</UserControl>
